import fetch from '@/utils/request';

const API_SHARE_URL = '/api/user/sale/invite';
/**
 * 邀请API对象
 * @module InviteApi
 */
const InviteApi = {
	/**
	 * @function invite
	 * @description 邀请
	 * @param  {Object} shareId 邀请分享对象Id
	 */
	invite: (shareId) => fetch.request({
		url: `${API_SHARE_URL}/save`,
		method: 'POST',
		data: {
			shareId: shareId,
		},
	}),
};
export default InviteApi;